﻿#include<stdio.h>
#include<stdlib.h>
int main()
{
	int i, j, n, m;
	int a[16] = { 0 };
	system("cls");
	printf("please input the decimalism nummber(0~32767):\n");
	scanf_s("%d", &n);
	for (m = 0;m < 15;m++)
	{
		i = n % 2;
		j = n / 2;
		n = j;
		a[m] = i;
	}

	for (m = 15;m >= 0;m--)
	{
		printf("%d", a[m]);
		if (m % 4 == 0) 
		{
			printf(" ");
		}
	}
	return 0;
 }